home *** CD-ROM | disk | FTP | other *** search
-
- ~4Dgifts/toolbox/src/exampleCode/X/cursor README
-
-
- fontCursor.c:
-
- A simple example of changing a window's cursor using "Font" cursors.
- The cursors are refered to by an index which is defined in the include
- file <X11/cursorfont.h>. Viewing cursor font definitions is possible
- by using the utility `xfd' like so:
- xfd -fn cursor
-
-
-
- pixmapCursor.c:
-
- This demonstrates how in X to define a cursor for one's own application
- without changing the cursor for the rest of the system. In X11, this
- can be done using either Pixmaps, Fonts, or Glyphs. Study especially
- the functions:
-
- XCreateFontCursor, XCreatePixmapCursor, XCreateGlyphCursor
- XDefineCursor, XUndefineCursor
-
- See /usr/include/X11/cursorfont.h for some predefined Font Cursors.
-
- These change the cursor only for the Window they're defined for.
- This is an example using Pixmap cursors.
-
-
-
-